package com.xiaotu.service.pgsql;

import com.xiaotu.dao.pgsql.PgsqlTvMapper;
import com.xiaotu.entity.TvDeleteRecordModel;
import com.xiaotu.entity.TvModel;
import com.xiaotu.entity.TvProcessDataModel;
import com.xiaotu.entity.WorksAwardModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author zhangxiao
 * @create 2021-09-22 11:16
 */
@Service
public class PgsqlTvService {

    @Autowired
    private PgsqlTvMapper tvMapper;

    public List<TvModel> needSyncs(String date) {
        return tvMapper.needSyncs(date);
    }

    public List<WorksAwardModel> getTvAwards() {
        return tvMapper.getTvAwards();
    }

    public List<TvProcessDataModel> getTvProcessData(String specifyDate) {
        return tvMapper.getTvProcessData(specifyDate);
    }

    public List<TvDeleteRecordModel> getTvDeleteRecords() {
        return tvMapper.getTvDeleteRecords();
    }

    public List<TvProcessDataModel> getLimitTvProcessData(Integer pageNum, Integer pageSize) {
        return tvMapper.getLimitTvProcessData(pageNum, pageSize);
    }
}
